﻿-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[A_ADD_Apostar]
	-- Add the parameters for the stored procedure here
	  @IDUtilizador int,
	  @IDJogo int,     
      @Aposta1 int,
      @Aposta2 int	
	
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	INSERT INTO [Apostas].[dbo].[A_Apostas]
           ([IDUtilizador]
           ,[IDJogo]         
           ,[Aposta1]
           ,[Aposta2]
           ,Pontos)
     VALUES
           (@IDUtilizador
           ,@IDJogo        
           ,@Aposta1
           ,@Aposta2
           ,NULL)

END
